package com.three.vip.controller;

import com.three.core.vo.R;
import com.three.vip.service.StoreBindService;
import com.three.vip.vo.StoreBindVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/vip/store")
public class StoreBindController {
    @Autowired
    private StoreBindService storeBindService;


    //查询门店绑定的信息封装到vo（积分，余额，店铺名，店铺id）
    @RequestMapping("/selectStoreBind")
    public R<List<StoreBindVo>> selectStoreBind(Integer userId){
        return storeBindService.selectStoreBind(userId);
    }
}
